import {t, api, message, bs} from "@/service/index.js"


export default {
    url: {
        add: "/imageClassification/add",
        list: "/imageClassification/list",
        del: "/imageClassification/del",
        edit: "/imageClassification/edit",
        imageTraining: "/imageClassification/imageTraining",
        testTraining: "/imageClassification/testTraining",
        imageList: "/imageClassification/imageList",
        featuresList: "/imageClassification/featuresList",
        editItemFeatures: "/imageClassification/editItemFeatures",
        delImageItem: "/imageClassification/delImageItem",
    },
    add(data) {
        return api.post(this.url.add, data)
    },
    list(data) {
        return api.post(this.url.list, data)
    },
    del(data) {
        return api.post(this.url.del, data)
    },
    edit(data) {
        return api.post(this.url.edit, data)
    },
    imageTraining(data){
        return api.post(this.url.imageTraining, data)
    },
    testTraining(data){
        return api.upload(this.url.testTraining, data)
    },
    imageList(data) {
        return api.post(this.url.imageList, data)
    },
    featuresList(data) {
        return api.post(this.url.featuresList, data)
    },
    editItemFeatures(data) {
        return api.post(this.url.editItemFeatures, data)
    },
    delImageItem(data) {
        return api.post(this.url.delImageItem, data)
    },

}